import { request } from '@api/service'

export const fetchList = (params) => {
  return request({
    url: '/help/information-list',
    method: 'get',
    params
  })
}

export const store = (data) => {
  return request({
    url: '/help/create-information',
    method: 'post',
    data
  })
}

export const edit = (id, data) => {
  return request({
    url: `/help/update-information?id=${id}`,
    method: 'post',
    data
  })
}

export const del = (params) => {
  return request({
    url: '/help/delete-information',
    method: 'get',
    params
  })
}
